package com.taoym.voucher.common.response;

import lombok.Getter;

/**
 * @author: taoym
 * @date: 2021/4/12 22:52
 * @desc: todo
 */
@Getter
public enum ResponseStatusCode {

    SUCCESS("0000", "请求成功"),
    PARAMETER_VALIDATE_IS_FAIL("0001", "参数校验失败"),
    USER_IS_NOT_EXIST_OR_PASSWORD_IS_WRONG("0002", "用户不存或密码错误"),
    REQUEST_OTHERS_API_IS_FAIL("0003", "请求三方接口失败"),
    ILLEGAL_ACCESS("0004", "非法访问"),
    TOKEN_ANALYSIS_FAIL("0005", "token解析失败"),
    TOKEN_IS_EXPIRED("0006", "token已过期"),
    MESSAGE_SEND_FAIL("0007", "消息发送失败"),
    REFRESH_TOKEN_IS_EXPIRED("0008", "RefreshToken已过期"),
    FILE_DELETE_IS_FAIL("0009", "文件删除失败"),
    FILE_UPLOAD_FAIL("0010", "文件上传失败"),
    JOB_IS_FAIL("0011", "任务失败"),
    NET_IS_WRONG("0012", "网络发生错误"),
    JOB_CLASS_IS_NOT_FIND("0013", "job类找不到"),
    JOB_IS_EXIST("0014", "任务已存在"),
    ACCESS_TOKEN_IS_NOT_EXIST("0015", "accessToken不存在"),
    RATE_IS_WRONG("0016", "佣金设置错误"),
    PLEASE_WITHDRAW_ON_TIME("0017", "请在每月的25-30号之间提现"),
    OPEN_ID_GET_FAIL("0018", "openId获取失败"),
    FEE_IS_NOT_ENOUGH("0019", "佣金不足"),
    SYS_DEPLOY_IS_NOT_COMPLETE("0020", "系统配置不完整"),
    REDIS_CONNECTION_FACTORY_IS_FAIL("0021", "RedisConnectionFactory获取失败"),
    KEY_IS_NOT_PI_PEI("0022", "密钥不匹配"),
    FAIL("9999", "请求失败");

    private final String code;
    private final String msg;

    ResponseStatusCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
